package until;

import server.HttpServlet;

public class TestClass  {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        DynamicClassLoader loader = new DynamicClassLoader();
        Class<?> myServlet = loader.findClass("D:\\webapps\\demo1\\server\\LagouServlet.class");
        Object o = myServlet.newInstance();
        if(o instanceof HttpServlet){
            System.out.println("加载到了");
        }


    }
}
